package com.wudl.govern.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 字段
 *
 * @author wudl
 */
@Data
@ApiModel
public class MetaColumnVO {

    @ApiModelProperty(value = "主键")
    private Integer columnId;

    @ApiModelProperty(value = "全名称")
    private String columnFullName;

    @ApiModelProperty(value = "名称")
    private String columnName;

    @ApiModelProperty(value = "短名")
    private String shortName;

    @ApiModelProperty(value = "默认值")
    private String defaultValue;

    @ApiModelProperty(value = "是否为主键的一部分  0  不是  ，1 代表是，")
    private Integer partOfPrimaryKey;

    @ApiModelProperty(value = "是否为唯一索引的一部分")
    private Integer partOfUniqueIndex;

    @ApiModelProperty(value = "引用列")
    private String referencedColumn;

    @ApiModelProperty(value = "数据类型")
    private String type;

    @ApiModelProperty(value = "原始序号")
    private Integer ordinalPosition;

    @ApiModelProperty(value = "精度")
    private Integer precision;

    @ApiModelProperty(value = "比例")
    private Integer scale;

    @ApiModelProperty(value = "是否可空")
    private String nullable;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "备注信息（平台添加的）")
    private String remarksExt;

    @ApiModelProperty(value = "属性Map")
    private String attributeMap;

    @ApiModelProperty(value = "0：表的列  1：视图的列 ")
    private Integer fromType;

    @ApiModelProperty(value = "0无效 1有效")
    private Integer dataState;

    @ApiModelProperty(value = "表id或者视图id或者存储过程id")
    private Integer metaTableId;

    @ApiModelProperty(value = "元目录id")
    private Integer metaDirId;

    @ApiModelProperty(value = "数据库目录id")
    private Integer metaDbDirId;

    @ApiModelProperty(value = "存储过程的列类型")
    private Integer procColumnType;

    @ApiModelProperty(value = "最后操作： 0 初始状态  1新增，2修改，3删除")
    private Integer lastOperation;

    @ApiModelProperty(value = "0:初始状态 1待审核  2审核通过 3审核不通过")
    private Integer lastOperationStatus;

    @ApiModelProperty(value = "客户录入列的ID")
    private Integer customColumnId;

    @ApiModelProperty(value = "脱敏表达式")
    private String desensitiveExpression;

    @ApiModelProperty(value = "是否脱敏1:是，0:否")
    private Integer desensitiveType;

    @ApiModelProperty(value = "脱敏符号")
    private String desensitiveCode;

    @ApiModelProperty(value = "1:字段,2:索引,3:外键,4:触发器")
    private Integer contentType;

    @ApiModelProperty(value = "version")
    private Integer version;

    @ApiModelProperty(value = "开始脱敏格式")
    private Integer desensitiveStart;

    @ApiModelProperty(value = "结束脱敏格式")
    private Integer desensitiveEnd;

    @ApiModelProperty(value = "脱敏原因")
    private String desensitiveReason;

    @ApiModelProperty(value = "是否脱敏序号1:是，0:否")
    private Integer desensitiveNumber;

}